from flask import render_template
from flask.views import MethodView

from apis import app

class BlogApi(MethodView):

    def get(self):
        # 渲染 html 文件
        return render_template("blog.html")

    def post(self):
        pass

app.add_url_rule('/blog', view_func=BlogApi.as_view('blog'))